package com.juzipi.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "user_role")
public class UsersRole {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long roleId;

    private UsersRole(){

    }

    private static class UsersRoleInstance{
        private static final UsersRole INSTANCE = new UsersRole();
    }

    public static UsersRole getInstance(){
        return UsersRoleInstance.INSTANCE;
    }
}
